package com.excesys.exsecs.admin.api.entity;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 页面设计与组件关联表
 *
 * @author lxc
 * @date 2024-11-18 14:07:02
 */
@Data
@TableName(value = "sys_page_comp_rel", autoResultMap = true)
@EqualsAndHashCode(callSuper = true)
@Schema(description = "页面设计与组件关联表")
public class SysPageCompRel extends Model<SysPageCompRel> {


	/**
	* 主键id
	*/
    @TableId(type = IdType.AUTO)
    @Schema(description="主键id")
    private Integer id;

	/**
	* 页面id
	*/
    @Schema(description="页面id")
    private Integer pageId;

	/**
	* 组件id
	*/
    @Schema(description="组件id")
    private Integer compId;

	/**
	* 拓展字段
	*/
    @Schema(description="拓展字段")
	@TableField(typeHandler = FastjsonTypeHandler.class)
    private JSONObject extra;
}